package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Announcement {//公告实体类
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //标题
    private String title;
    //内容
    private String main;
    //发布人
    private Integer publisher;
    //发布单位
    private Integer publishUnit;
    //发布时间
    private LocalDate publishDate;
    //生效时间
    private LocalDate effectiveDate;
    //审批进度
    private Integer approval;
    //发布人名
    @TableField(exist = false)
    private String publishUnitName;
    //发布人名
    @TableField(exist = false)
    private String publisherName;
    //公告状态
    @TableField(exist = false)
    private String state;
    //简介
    private String introduction;
    //批注
    private String comments;
    //条数
    @TableField(exist = false)
    private Integer count;
}
